home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gnome-vfs-2.0 / libgnomevfs / gnome-vfs-result.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-01  |  3.3 KB  |  99 lines

  1. /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
  2.  
  3. /* gnome-vfs-result.h - Result handling for the GNOME Virtual File System.
  4.  
  5.    Copyright (C) 1999, 2001 Free Software Foundation
  6.  
  7.    The Gnome Library is free software; you can redistribute it and/or
  8.    modify it under the terms of the GNU Library General Public License as
  9.    published by the Free Software Foundation; either version 2 of the
  10.    License, or (at your option) any later version.
  11.  
  12.    The Gnome Library is distributed in the hope that it will be useful,
  13.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.    Library General Public License for more details.
  16.  
  17.    You should have received a copy of the GNU Library General Public
  18.    License along with the Gnome Library; see the file COPYING.LIB.  If not,
  19.    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.    Boston, MA 02111-1307, USA.
  21.  
  22.    Author: Ettore Perazzoli <ettore@comm2000.it>
  23.            Seth Nickell <snickell@stanford.edu>
  24. */
  25.  
  26. #ifndef GNOME_VFS_RESULT_H
  27. #define GNOME_VFS_RESULT_H
  28.  
  29. #include <glib/gmacros.h>
  30.  
  31. G_BEGIN_DECLS
  32.  
  33. /* IMPORTANT NOTICE: If you add error types here, please also add the
  34.    corresponding descriptions in `gnome-vfs-result.c'.  Moreover, *always* add
  35.    new values at the end of the list, and *never* remove values.  */
  36. typedef enum {
  37.     GNOME_VFS_OK,
  38.     GNOME_VFS_ERROR_NOT_FOUND,
  39.     GNOME_VFS_ERROR_GENERIC,
  40.     GNOME_VFS_ERROR_INTERNAL,
  41.     GNOME_VFS_ERROR_BAD_PARAMETERS,
  42.     GNOME_VFS_ERROR_NOT_SUPPORTED,
  43.     GNOME_VFS_ERROR_IO,
  44.     GNOME_VFS_ERROR_CORRUPTED_DATA,
  45.     GNOME_VFS_ERROR_WRONG_FORMAT,
  46.     GNOME_VFS_ERROR_BAD_FILE,
  47.     GNOME_VFS_ERROR_TOO_BIG,
  48.     GNOME_VFS_ERROR_NO_SPACE,
  49.     GNOME_VFS_ERROR_READ_ONLY,
  50.     GNOME_VFS_ERROR_INVALID_URI,
  51.     GNOME_VFS_ERROR_NOT_OPEN,
  52.     GNOME_VFS_ERROR_INVALID_OPEN_MODE,
  53.     GNOME_VFS_ERROR_ACCESS_DENIED,
  54.     GNOME_VFS_ERROR_TOO_MANY_OPEN_FILES,
  55.     GNOME_VFS_ERROR_EOF,
  56.     GNOME_VFS_ERROR_NOT_A_DIRECTORY,
  57.     GNOME_VFS_ERROR_IN_PROGRESS,
  58.     GNOME_VFS_ERROR_INTERRUPTED,
  59.     GNOME_VFS_ERROR_FILE_EXISTS,
  60.     GNOME_VFS_ERROR_LOOP,
  61.     GNOME_VFS_ERROR_NOT_PERMITTED,
  62.     GNOME_VFS_ERROR_IS_DIRECTORY,
  63.     GNOME_VFS_ERROR_NO_MEMORY,
  64.     GNOME_VFS_ERROR_HOST_NOT_FOUND,
  65.     GNOME_VFS_ERROR_INVALID_HOST_NAME,
  66.     GNOME_VFS_ERROR_HOST_HAS_NO_ADDRESS,
  67.     GNOME_VFS_ERROR_LOGIN_FAILED,
  68.     GNOME_VFS_ERROR_CANCELLED,
  69.     GNOME_VFS_ERROR_DIRECTORY_BUSY,
  70.     GNOME_VFS_ERROR_DIRECTORY_NOT_EMPTY,
  71.     GNOME_VFS_ERROR_TOO_MANY_LINKS,
  72.     GNOME_VFS_ERROR_READ_ONLY_FILE_SYSTEM,
  73.     GNOME_VFS_ERROR_NOT_SAME_FILE_SYSTEM,
  74.     GNOME_VFS_ERROR_NAME_TOO_LONG,
  75.     GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE,
  76.     GNOME_VFS_ERROR_SERVICE_OBSOLETE,
  77.     GNOME_VFS_ERROR_PROTOCOL_ERROR,
  78.     GNOME_VFS_ERROR_NO_MASTER_BROWSER,
  79.     GNOME_VFS_ERROR_NO_DEFAULT,
  80.     GNOME_VFS_ERROR_NO_HANDLER,
  81.     GNOME_VFS_ERROR_PARSE,
  82.     GNOME_VFS_ERROR_LAUNCH,
  83.     GNOME_VFS_ERROR_TIMEOUT,
  84.     GNOME_VFS_ERROR_NAMESERVER,
  85.     GNOME_VFS_ERROR_LOCKED,
  86.     GNOME_VFS_ERROR_DEPRECATED_FUNCTION,
  87.     GNOME_VFS_NUM_ERRORS
  88. } GnomeVFSResult;
  89.  
  90. const char    *gnome_vfs_result_to_string        (GnomeVFSResult result);
  91. GnomeVFSResult   gnome_vfs_result_from_errno_code   (int errno_code);
  92. GnomeVFSResult     gnome_vfs_result_from_errno        (void);
  93. GnomeVFSResult   gnome_vfs_result_from_h_errno_val  (int h_errno_code);
  94. GnomeVFSResult   gnome_vfs_result_from_h_errno      (void);
  95.  
  96. G_END_DECLS
  97.  
  98. #endif /* GNOME_VFS_RESULT_H */
  99.